#include "UiMgr.h"
#include "GameScene.h"
CUiMgr* CUiMgr::_Instance = nullptr;
CUiMgr::CUiMgr()
{
}

CUiMgr::~CUiMgr()
{
	_Instance = nullptr;
}

CUiMgr* CUiMgr::getInstance()
{
	if (!_Instance){
		_Instance = CUiMgr::create();
	}
	return _Instance;
}

bool CUiMgr::init()
{
	m_pMoveButton = CMoveButton::create();
	this->addChild(m_pMoveButton);

	m_pAttackButton = CAttackButton::create();
	this->addChild(m_pAttackButton);

	m_pSkillButton = CSkillButton::create();
	this->addChild(m_pSkillButton);

	return true;
}





void CUiMgr::initPropertyUi()
{
	m_pProperty = CProperty::create();
	this->addChild(m_pProperty);
}

